<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    const obj = {
      id: 123,
      age: 20,
      name: "cyrus",
      school: "河北科技大学"
    }

    let obj1 = {
      age: 18,
      ...obj,
      name: "李四"
    }

    console.log(obj1.age);
    console.log(obj1.id);
    console.log(obj1.name);
  </script>
</body>

</html>